package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 发货单明细记录实体类
 *
 * @author 吴旭
 */
public class ShippingOrderLinesEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 3321029243736316871L;
    private String LinesId;
    private Long HeaderId;
    private Integer StartNo;                // 起始箱号
    private Integer EndNo;                  // 结束箱号
    private Integer CartonCount;            // 共几箱
    private Integer CartonNo;               // 箱号
    private String Destination;             // 发货目的地
    private String StyleNo;                 // 款号
    private String ProductName;             // 品名
    private String ColourNumber;            // 色号
    private String ColourName;              // 颜色(有混色情况,取自生产指示书明细的色号)
    private String ColourOrderNo;           // 成品颜色顺序号(混色顺序号:1/2/1)
    private String SizeName;                // 成品尺码（取自生产指示书明细的套装尺码）
    private String SizeLable;               // 客户尺码标号
    private String SizeOrderNo;             // 成品尺码顺序号(混码顺序号:1/2/1)
    private Integer InCase;
    private Integer InBox;
    private String ShippingMarkNo;
    private String Description;
    private Short RowFlag;                  // 行标记，用于区分小计行、总计以及普通行
    private Object InBoxMemoJson;           // 尺码对应的箱内数

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Integer getStartNo() {
        return StartNo;
    }

    public void setStartNo(Integer StartNo) {
        this.StartNo = StartNo;
    }

    public Integer getEndNo() {
        return EndNo;
    }

    public void setEndNo(Integer EndNo) {
        this.EndNo = EndNo;
    }

    public Integer getCartonCount() {
        return CartonCount;
    }

    public void setCartonCount(Integer CartonCount) {
        this.CartonCount = CartonCount;
    }

    public Integer getCartonNo() {
        return CartonNo;
    }

    public void setCartonNo(Integer CartonNo) {
        this.CartonNo = CartonNo;
    }

    public String getDestination() {
        return Destination;
    }

    public void setDestination(String Destination) {
        this.Destination = Destination;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public String getColourNumber() {
        return ColourNumber;
    }

    public void setColourNumber(String ColourNumber) {
        this.ColourNumber = ColourNumber;
    }

    public String getColourName() {
        return ColourName;
    }

    public void setColourName(String ColourName) {
        this.ColourName = ColourName;
    }

    public String getColourOrderNo() {
        return ColourOrderNo;
    }

    public void setColourOrderNo(String ColourOrderNo) {
        this.ColourOrderNo = ColourOrderNo;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    public String getSizeLable() {
        return SizeLable;
    }

    public void setSizeLable(String SizeLable) {
        this.SizeLable = SizeLable;
    }

    public String getSizeOrderNo() {
        return SizeOrderNo;
    }

    public void setSizeOrderNo(String SizeOrderNo) {
        this.SizeOrderNo = SizeOrderNo;
    }

    public Integer getInCase() {
        return InCase;
    }

    public void setInCase(Integer InCase) {
        this.InCase = InCase;
    }

    public Integer getInBox() {
        return InBox;
    }

    public void setInBox(Integer InBox) {
        this.InBox = InBox;
    }

    public String getShippingMarkNo() {
        return ShippingMarkNo;
    }

    public void setShippingMarkNo(String ShippingMarkNo) {
        this.ShippingMarkNo = ShippingMarkNo;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Short getRowFlag() {
        return RowFlag;
    }

    public void setRowFlag(Short RowFlag) {
        this.RowFlag = RowFlag;
    }

    public Object getInBoxMemoJson() {
        return InBoxMemoJson;
    }

    public void setInBoxMemoJson(Object InBoxMemoJson) {
        this.InBoxMemoJson = InBoxMemoJson;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ShippingOrderLinesEntity)) {
            return false;
        }

        final ShippingOrderLinesEntity that = (ShippingOrderLinesEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
